package com.inxedu.os.edu.dao;

import com.inxedu.os.edu.pojo.EduTeacher;
import com.inxedu.os.edu.pojo.EduTeacherExample;
import com.inxedu.os.edu.pojo.QueryTeacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EduTeacherMapper {
    int countByExample(EduTeacherExample example);

    int deleteByExample(EduTeacherExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(EduTeacher record);

    int insertSelective(EduTeacher record);

    List<EduTeacher> selectByExampleWithBLOBs(EduTeacherExample example);

    List<EduTeacher> selectByExample(EduTeacherExample example);

    EduTeacher selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") EduTeacher record, @Param("example") EduTeacherExample example);

    int updateByExampleWithBLOBs(@Param("record") EduTeacher record, @Param("example") EduTeacherExample example);

    int updateByExample(@Param("record") EduTeacher record, @Param("example") EduTeacherExample example);

    int updateByPrimaryKeySelective(EduTeacher record);

    int updateByPrimaryKeyWithBLOBs(EduTeacher record);

    int updateByPrimaryKey(EduTeacher record);

    public List<EduTeacher> selectTeacherList(QueryTeacher queryTeacher);

    /**
     * 修改讲师信息
     * @param teacher 讲师数据
     */
    public int updateTeacher(EduTeacher teacher);

    /**
     *删除
     * @param id
     * @return
     */
    int deleteTeacherById(int id);
}